From 40fd2782c404b8e86aeb11639d12b4e99aad5eca Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Tue, 17 May 2016 18:41:31 -0400 Subject: [PATCH] Add info about `build-dependencies` to the specifying deps page --- src/doc/specifying-dependencies.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/doc/specifying-dependencies.md b/src/doc/specifying-dependencies.md index ac121c714..0177e361d 100644 --- a/src/doc/specifying-dependencies.md +++ b/src/doc/specifying-dependencies.md @@ -310,3 +310,19 @@ mio = "0.0.1" ``` [crates.io]: https://crates.io/ + +# Build dependencies + +You can depend on other Cargo-based crates for use in your build scripts. +Dependencies are declared through the `build-dependencies` section of the +manifest: + +```toml +[build-dependencies] +gcc = "0.3" +``` + +The build script **does not** have access to the dependencies listed in the +`dependencies` or `dev-dependencies` section (they’re not built yet!). All build +dependencies will also not be available to the package itself unless listed +under the `dependencies` section as well. -- 2.30.2